package com.sara.service.impl;

import com.sara.entity.Type;
import com.sara.entity.TypeExample;
import com.sara.mapper.TypeMapper;
import com.sara.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Wayne
 * @date 2019/1/11
 */
@Service
public class TypeServiceImpl implements TypeService {
    @Autowired
    private TypeMapper typeMapper;
    @Override
    public List<Type> findAll() {
        return  typeMapper.selectByExample(new TypeExample());

    }
}
